import service from '@/utils/request'

// @Tags MasterBOMColor
// @Summary 创建MasterBOM-颜色
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.MasterBOMColor true "创建MasterBOM-颜色"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /masterBOMColor/createMasterBOMColor [post]
export const createMasterBOMColor = (data) => {
  return service({
    url: '/masterBOMColor/createMasterBOMColor',
    method: 'post',
    data
  })
}

// @Tags MasterBOMColor
// @Summary 删除MasterBOM-颜色
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.MasterBOMColor true "删除MasterBOM-颜色"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /masterBOMColor/deleteMasterBOMColor [delete]
export const deleteMasterBOMColor = (params) => {
  return service({
    url: '/masterBOMColor/deleteMasterBOMColor',
    method: 'delete',
    params
  })
}

// @Tags MasterBOMColor
// @Summary 批量删除MasterBOM-颜色
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除MasterBOM-颜色"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /masterBOMColor/deleteMasterBOMColor [delete]
export const deleteMasterBOMColorByIds = (params) => {
  return service({
    url: '/masterBOMColor/deleteMasterBOMColorByIds',
    method: 'delete',
    params
  })
}

// @Tags MasterBOMColor
// @Summary 更新MasterBOM-颜色
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.MasterBOMColor true "更新MasterBOM-颜色"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /masterBOMColor/updateMasterBOMColor [put]
export const updateMasterBOMColor = (data) => {
  return service({
    url: '/masterBOMColor/updateMasterBOMColor',
    method: 'put',
    data
  })
}

// @Tags MasterBOMColor
// @Summary 用id查询MasterBOM-颜色
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.MasterBOMColor true "用id查询MasterBOM-颜色"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /masterBOMColor/findMasterBOMColor [get]
export const findMasterBOMColor = (params) => {
  return service({
    url: '/masterBOMColor/findMasterBOMColor',
    method: 'get',
    params
  })
}

// @Tags MasterBOMColor
// @Summary 分页获取MasterBOM-颜色列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取MasterBOM-颜色列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /masterBOMColor/getMasterBOMColorList [get]
export const getMasterBOMColorList = (params) => {
  return service({
    url: '/masterBOMColor/getMasterBOMColorList',
    method: 'get',
    params
  })
}
